-
25.68 s
Nucleus Resource API
-
156 ms
Hierarchy tree
-
18 ms
Simple direct branch
-
11 ms
passedThe four ancestor of our branch's leaf are retrieved in order of closeness.
-
7 ms
passedThe four children of our branch's knot are retrieved in order of closeness.
-
138 ms
Complex tree
-
13 ms
passedAll of the SYSTEM node members are retrieved.
-
4 ms
passedThe two ancestors of the resource (0da2e0ec-02a1-4756-89f5-5bf2c2d3664a) are retrieved in order of closeness.
-
5 ms
passedThe ancestor of the resource (61fc9214-da8a-4426-8baf-b04565e87d4c) is retrieved.
-
2 ms
passedThe ancestor of the user (fcc66afe-3d80-4225-bd1f-7a34bd26f403) is retrieved.
-
13 ms
passedThe three children of the group (caef15f7-58a0-4418-96c2-de211ff2496b) are retrieved in order of closeness.
-
22 ms
passedThe user (fcc66afe-3d80-4225-bd1f-7a34bd26f403) can retrieve the resource (61fc9214-da8a-4426-8baf-b04565e87d4c).
-
userAncestorNodeList: 2.916ms
userDirectAncestorChildrenNodeList: 6.539ms
resourceNodeListAncestorNodeList: 5.852ms
-
16 ms
passedThe user (fcc66afe-3d80-4225-bd1f-7a34bd26f403) can retrieve the resource (0da2e0ec-02a1-4756-89f5-5bf2c2d3664a).
-
userAncestorNodeList: 2.489ms
userDirectAncestorChildrenNodeList: 4.423ms
resourceNodeListAncestorNodeList: 4.591ms
-
35 ms
passedThe user (fcc66afe-3d80-4225-bd1f-7a34bd26f403) can not retrieve the resource (a7dc927f-9ebd-4d3b-8cf5-2ffea24bcf57).
-
userAncestorNodeList: 2.552ms
userDirectAncestorChildrenNodeList: 18.895ms
resourceNodeListAncestorNodeList: 8.322ms
-
6 ms
passedThe user (fcc66afe-3d80-4225-bd1f-7a34bd26f403) can update the resource (61fc9214-da8a-4426-8baf-b04565e87d4c).
-
9 ms
passedThe user (fcc66afe-3d80-4225-bd1f-7a34bd26f403) can update the resource (0da2e0ec-02a1-4756-89f5-5bf2c2d3664a).
-
8 ms
passedThe user (fcc66afe-3d80-4225-bd1f-7a34bd26f403) can not update the resource (a7dc927f-9ebd-4d3b-8cf5-2ffea24bcf57).
-
5 ms
passedThe user (87330246-ffee-4c87-aa5a-9232bca00132) can not update the resource (f76a418a-a4a4-41e8-8f68-99d6b1446bbd).
-
25.52 s
Persistent storage
-
26 ms
#createResource
-
12 ms
passedThe dummy resource is created in the datastore.
-
3 ms
passedThe dummy resource's relationship with its author and its group is created.
-
3 ms
passedThe dummy resource can be created without a resource relationship datastore.
-
2 ms
passedThe formatted resource, the resource's author and the resource's group is returned.
-
ignoredThe dummy resource is created by default in the group of the author user.
-
Pending test 'The dummy resource is created by default in the group of the author user.'
-
ignoredThe resource can reserve its own ID.
-
Pending test 'The resource can reserve its own ID.'
-
2 ms
passedUsing resource attributes that doesn't validate against the resource model throws an error.
-
3 ms
passedUsing an undefined resource type throws an error.
-
0 ms
passedUsing an undefined resource model throws an error.
-
1 ms
passedUsing a non-existing user throws an error.
-
29 ms
#removeResourceByID
-
13 ms
passedThe dummy resource is removed from the datastore.
-
14 ms
passedThe dummy resource relationships are removed from the resource relationship datastore.
-
2 ms
passedThe dummy resource can't be removed by a user from another branch.
-
26 ms
#retrieveResourceByID
-
24 ms
passedThe dummy resource is retrieved from the datastore.
-
userAncestorNodeList: 2.437ms
userDirectAncestorChildrenNodeList: 5.327ms
resourceNodeListAncestorNodeList: 2.673ms
-
2 ms
passedThe dummy resource can't be retrieve by a user from another branch.
-
9 ms
#retrieveAllNodesByType
-
9 ms
passedThe nodes are retrieved based on the user ID hierarchical position.
-
userDirectAncestorChildrenNodeList: 3.887ms
resourceNodeListAncestorNodeList: 2.492ms
-
2 ms
#retrieveAllNodesByRelationshipWithNodeByID
-
2 ms
passedAll the members of the node is retrieved.
-
19 ms
#retrieveAllResourcesByType
-
19 ms
passedAll the dummy resources are retrieved.
-
46 ms
#retrieveAllResourcesByTypeForResourceByID
-
46 ms
passedAll the dummy resources for the group are retrieved.
-
userAncestorNodeList: 5.433ms
userDirectAncestorChildrenNodeList: 4.932ms
resourceNodeListAncestorNodeList: 8.132ms
69b8a1da-95e1-4f20-8529-c03ba9bc7807 Group Dummy Permission: 27.167ms
69b8a1da-95e1-4f20-8529-c03ba9bc7807 Group Dummy Node: 2.174ms
69b8a1da-95e1-4f20-8529-c03ba9bc7807 Group Dummy Resource: 5.602ms
-
3 ms
#retrieveBatchResourceByIDList
-
3 ms
passedAll the dummy resources are retrieved.
-
16.20 s
#updateResourceByID
-
22 ms
passedThe dummy resource is updated to the datastore.
-
13 ms
passedThe resource relationships are returned.
-
2 ms
passedThe dummy resource can't be updated by a user from another branch.
-
16.17 s
Intermitent update
-
16.17 s
passedThe resource is updated and retrieved multiple times.
-
userAncestorNodeList: 4.392ms
userDirectAncestorChildrenNodeList: 3.960ms
resourceNodeListAncestorNodeList: 2.709ms
userAncestorNodeList: 6.032ms
userDirectAncestorChildrenNodeList: 3.316ms
resourceNodeListAncestorNodeList: 2.577ms
-
9.16 s
Retrieve all performance
-
596 ms
50 dummies
-
100 ms
passedAll the dummy resources are retrieved. 1 attempts
-
Setup: 78.673ms
Retrieve all (1 attempt(s)): 94.364ms
-
206 ms
passedAll the dummy resources are retrieved. 3 attempts
-
Setup: 112.327ms
Retrieve all (3 attempt(s)): 69.607ms
-
290 ms
passedAll the dummy resources are retrieved. 5 attempts
-
Setup: 79.995ms
Retrieve all (5 attempt(s)): 66.496ms
-
2.16 s
200 dummies
-
249 ms
passedAll the dummy resources are retrieved. 1 attempts
-
Setup: 292.893ms
Retrieve all (1 attempt(s)): 247.235ms
-
738 ms
passedAll the dummy resources are retrieved. 3 attempts
-
Setup: 233.560ms
Retrieve all (3 attempt(s)): 233.039ms
-
1.18 s
passedAll the dummy resources are retrieved. 5 attempts
-
Setup: 225.021ms
Retrieve all (5 attempt(s)): 237.705ms
-
5.07 s
400 dummies
-
714 ms
passedAll the dummy resources are retrieved. 1 attempts
-
Setup: 431.655ms
Retrieve all (1 attempt(s)): 709.143ms
-
1.61 s
passedAll the dummy resources are retrieved. 3 attempts
-
Setup: 692.055ms
Retrieve all (3 attempt(s)): 565.715ms
-
2.75 s
passedAll the dummy resources are retrieved. 5 attempts
-
Setup: 433.306ms
Retrieve all (5 attempt(s)): 508.209ms
-
1.33 s
800 dummies
-
1.33 s
passedAll the dummy resources are retrieved. 1 attempts
-
Setup: 1080.683ms
Retrieve all (1 attempt(s)): 1326.062ms
-
skippedAll the dummy resources are retrieved. 3 attempts
-
Setup: 808.278ms
Retrieve all (3 attempt(s)): 1184.507ms
-
Debugger listening on ws://127.0.0.1:63619/66a97032-d769-42bf-a0d2-fad9be715d68
For help see https://nodejs.org/en/docs/inspector
-
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)
-
skippedAll the dummy resources are retrieved. 5 attempts
-
1600 dummies
-
skippedAll the dummy resources are retrieved. 1 attempts
-
skippedAll the dummy resources are retrieved. 3 attempts
-
skippedAll the dummy resources are retrieved. 5 attempts